import tkinter
win=tkinter.Tk()

win.title("中国工商银行系统")

win.geometry("400x400+200+100")#长字母（x）宽  距屏幕左侧位置  距屏幕上边位置

#菜单条
menubar=tkinter.Menu(win)


#创建菜单
menu1=tkinter.Menu(menubar,tearoff=False)
for item in ["Python","c","C++","OC","swift","shell","JS","NodeJS","Java","退出"]:
    menu1.add_command(label=item)




def showMenu(event):
    menubar.post(event.x_root,event.y_root)


win.bind("<Button-3>",showMenu) #<Button-1>鼠标左键，<Button-2>滑轮  <Button-3>  鼠标右键
menubar.add_cascade(label="语言",menu=menu1)

win.mainloop()